-- GENERATED SPELL FOR [Razormane Thornweaver] --


function spell0_3268(pUnit, Event) --@Faerie Fire,n/a--
pUnit:FullCastSpellOnTarget(6950,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3268', 2000, 1)
end

function spell1_3268(pUnit, Event) --@Thorns,n/a--
pUnit:FullCastSpellOnTarget(467,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3268', 557, 1)
end

function Sorts_3268(pUnit, Event)
local choix_sorts_3268 = math.random(0, 1)
if choix_sorts_3268 == 0 then
pUnit:RegisterEvent('spell0_3268', 1, 1)
end
if choix_sorts_3268 == 1 then
pUnit:RegisterEvent('spell1_3268', 1, 1)
end
end

function mob3268_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3268', math.random(1500, 3000), 1)
end

function mob3268_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3268_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3268_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3268, 1, 'mob3268_Action')
RegisterUnitEvent(3268, 2, 'mob3268_Leave')
RegisterUnitEvent(3268, 3, 'mob3268_Kill')
RegisterUnitEvent(3268, 4, 'mob3268_Die')
